﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;


public class PubClass
{
    public static string GetPhotoState(string state)
    {
        string restr = "已采集";
        switch (state)
        {
            case "False":
                restr = "<a style=\"color:blue\">未采集</a>";
                break;

            case "True":
                restr = "<a style=\"color:green\">已采集</a>";
                break;
        }
        return restr;
    }

    public static string GetCar(int type)
    {
        string restr = "无";
        switch (type)
        {
            case 1:
                restr = "<a style=\"color:blue\">机动线</a>";
                break;

            case 2:
                restr = "<a style=\"color:green\">陈疃线</a>";
                break;
            case 3:
                restr = "<a style=\"color:red\">两城线</a>";
                break;
        }
        return restr;
    }


    public static string GetLz(string state)
    {
        string restr = "在职";
        switch (state)
        {
            case "True":
                restr = "<a style=\"color:red\">离职</a>";
                break;
            case "False":
                restr = "<a style=\"color:green\">在职</a>";
                break;
        }
        return restr;
    }
    public static string GetLsg(string type)
    {
        string restr = "";
        switch (type)
        {
            case "False":
                restr = "";
                break;
            case "True":
                restr = "<a style=\"color:red\">【临】</a>";
                break;

        }
        return restr;
    }
    public static string GetBx(string state)
    {
        string restr = "未处理";
        switch (state)
        {
            case "False":
                restr = "<a style=\"color:red\">未处理</a>";
                break;
            case "True":
                restr = "<a style=\"color:green\">已处理</a>";
                break;
        }
        return restr;
    }

    public static string GetSsZt(string state)
    {
        string restr = "正常";
        switch (state)
        {
            case "False":
                restr = "<a style=\"color:red\">损坏</a>";
                break;
            case "True":
                restr = "<a style=\"color:green\">正常</a>";
                break;
        }
        return restr;
    }



    public static string GetRzZt(string state)
    {
        string restr = "退房";
        switch (state)
        {
            case "False":
                restr = "<a style=\"color:red\">退房</a>";
                break;
            case "True":
                restr = "<a style=\"color:green\">入住</a>";
                break;
        }
        return restr;
    }
    public static string GetSsSsType(string type)
    {
        string restr = "男";
        switch (type)
        {
            case "1":
                restr = "<a style=\"color:green\">男</a>";
                break;
            case "0":
                restr = "<a style=\"color:red\">女</a>";
                break;
            case "2":
                restr = "<a style=\"color:blue\">预留</a>";
                break;
        }
        return restr;
    }


}
